<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<!--
test
exec
-->
<script>
// 验证邮箱    1abc@
var re = /^\w{3,15}@[\w-]+\.(com|cn|net|org|edu|com\.cn)$/gi;
var s = "aqd@sohu.cn";
console.log(re.exec(s));

var imgUrl = "https://img0.imgtn.bdimg.com/it/u=1738728778,7298606&fm=26&gp=0.png"
var re1 = /^(http|https):\/\/.+\.(jpg|jpeg|gif|png)$/gi;
console.log(re1.exec(imgUrl));

</script>

</body>
</html>